我有一个数组,比方说vararray=[[1,0,0,0,0,0,0],[0,1,0,0,0,1,0],[0,0,1,0,1,0,0],[0,0,0,1,0,0,0],[0,0,1,0,0,0,0],[0,0,0,0,0,0,0]]我想创建一个来查找数字在对Angular线上出现四次的所有匹配项。我目前正在使用functioncheckDiagonal(array,bottomToTop){varYlength=array.length;varXlength=array[0].length;varmaxLength=Math.max(Xlength,Ylength);vartemp;v
importReact,{Component}from'react';importPhaserfrom'phaser';exportdefaultclassAppextendsComponent{constructor(props){super(props);this.game=null;this.create=()=>{this.game.stage.backgroundColor='#124184';}}componentDidMount(){this.game=newPhaser.Game(800,600,Phaser.CANVAS,'phaser-target',{create